<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>四川工科院智能出行疫情打卡系统</title>
    <link type="text/css" rel="stylesheet" href="../css/user.css">
</head>
<body class="login_bg">
<section class="loginBox">
    <header class="loginHeader">
        <h1>四川工科院智能出行疫情打卡系统</h1>
    </header>
    <section class="loginCont">
        <form class="loginForm" action="/login" name="actionForm" id="actionForm" method="post">

            <div class="info" th:text="${info}"></div>
            <div class="inputbox">
                <label for="userCode">用户名：</label>
                <input type="text" class="input-text" id="userCode" name="name"
                       placeholder="请输入用户名" required="">
            </div>
            <div class="inputbox">
                <label for="userPassword">密码：</label>
                <input type="password" id="userPassword" name="password" placeholder="请输入密码" required="">
            </div>
            <div class="subBtn">
                <input type="submit" value="登录">
                <input onclick="register()" type="reset" value="注册">
            </div>
        </form>
    </section>
</section>

<!-- 使用js  ajax  请求 -->
<script type="text/javascript">
    function register(){
        //使用js实现页面跳转
        //使用js的bom操作
        window.location.href="/register";
    }



</script>



</body></html>